﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TemplateTEst.Interface;

namespace TemplateTEst.Abstract
{

    public abstract class TempControl : ITable
    {

        public virtual void Render()
        {
            var cells = CellList;

            foreach (var item in cells)
            {
                Console.WriteLine(item.Icon);
                foreach (var inner in item.CellInnerList)
                {
                    Console.WriteLine(inner.Text);
                }
            }
        }

        
        public TempControl()
        {
            Render();
        }


        public virtual bool AllIconHide { get; set; }

        public abstract List<ITableCell> CellList { get; set; }

        public bool EnabledInitializeDropDown { get; set; }

    }
}
